|
|
|
| Table 1.6 Color Codes in the VGA Palette | | VALUE | COLOR | VALUE | COLOR | | 0 | Black | 8 | Gray | | 1 | Blue | 9 | Light Blue | | 2 | Green | 10 | Light Green | | 3 | Cyan | 11 | Light Cyan | | 4 | Red | 12 | Light Red | | 5 | Magenta | 13 | Light Magenta | | 6 | Yellow | 14 | Light Yellow | | 7 | White | 15 | Bright White |
|
|
|
|
|
|
Theoretically a program can perform any graphic operation using only Visual Basic's methods. If absolutely necessary, a program can use Point and PSet to read and write every pixel in an image individually. While the API functions described in the following chapter provide faster and more powerful graphic operations, they are also much more complicated. To avoid unnecessary complications, always try to build graphic programs using Visual Basic methods first. Only after you are sure Visual Basic's tools are inadequate should you bother with API functions. |
|
|
|
|
|